﻿@model System.Collections.Generic.List<Blog_Domain.Post>
@{
    ViewBag.Title = "List";
}

<h2>List</h2>
<div>
    @foreach (var post in Model)
    {
        <hr />
        <div style="width:600px">
        <div style="background-color:Aquamarine">Title: <b>@Html.ActionLink(post.Title, "Detail", new { id = post.Id})</b></div><br />
        @post.Body
        </div>
        <hr />
    }
</div>
